﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BBICMS.Model.DTO
{
    public class DocumentDTO
    {
        
        public int Id { get; set; }
        [Required]
        [Display(Name ="主题")]
        public string Title { get; set; }
        [Display(Name = "文件大小")]
        public Decimal? FileSize { get; set; }
        [Display(Name = "文件格式")]
        public string Extension { get; set; }
        [Display(Name = "路径/网址")]
        public string FilePath { get; set; }
        [Display(Name = "排序")]
        public int Importance { get; set; }
        [Display(Name = "显示")]
        public bool Active { get; set; }
        [Display(Name = "公开")]
        public bool IsVIP { get; set; }
        [Display(Name = "是否链接")]
        public bool IsLink { get; set; }
        [Display(Name = "下载次数")]
        public int DownloadCount { get; set; }
        [Display(Name = "分类")]       
        public int CategoryId { get; set; }
        [Display(Name = "相关产品")]
        public string ProductIds { get; set; }
        [Display(Name = "下载密码")]
        public string Password { get; set; }

        public virtual Category Category { get; set; }
        public string CategoryTitle { get; set; }
        [Display(Name = "创建时间")]
        public DateTime AddedDate { get; set; }
      
        [Display(Name = "创建者")]
        public string AddedBy { get; set; }
    }
}
